import Airport.*;
import Airport.Flight.*;


public class TestMainClass {

	public static void main(String[] args) {

		
		Airport aport = new Airport(3);
		Flight flight = new Flight(5);
		aport.addFlight(flight);
		
		System.out.println(aport.toString());
		aport.cancelFlight(flight);
		System.out.println(aport.toString());
		aport.delayFlight(flight);
		System.out.println(aport.toString());
		aport.openFlight(flight);
		System.out.println(aport.toString());
		
		aport.addFlight(flight);
		aport.removeFlight(flight);
		System.out.println(aport.toString());
		
		flight.addPassenger(new Passenger("AAA"));
		flight.addPassenger(new Passenger("BBB"));
		flight.addPassenger(new Passenger("CCC"));
		
		Flight secondFlight = new Flight(2);
		secondFlight.addPassenger(new Passenger("DDD"));
		flight.addPassenger(new Passenger("EEE"));
		
		aport.addFlight(flight);
		aport.addFlight(secondFlight);
		aport.delayFlight(secondFlight);
		System.out.println(aport.toString());
		aport.addPassenger(secondFlight, new Passenger("DDD"));
		System.out.println(aport.toString());
	}
	
	

}
